-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single Bucket - Delete object #67
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/single-bucket #67 +/- ##
=====================================================
Coverage ? 58.46%
=====================================================
Files ? 38
Lines ? 1712
Branches ? 0
=====================================================
Hits ? 1001
Misses ? 711
Partials ? 0 ☔ View full report in Codecov by Sentry. |
@@ -25,7 +24,6 @@ async function invalidateCollab(api, url, env) { | |||
} | |||
|
|||
export async function deleteSource({ req, env, daCtx }) { | |||
await postObjectVersion(req, env, daCtx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC this line here is to save a version of the file before deletion, so that it could be restored if the delete was accidental. I think it would be good to keep that.
/cc @karlpauls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, there was a discussion about this (OOB). The problem was it didn't consider directories correctly. IMO it would make sense to keep it unless it causes big performance concerns but it would need to be only done for files and you'd have to evaluate the impact for large trees I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was discussed on Slack w/ @auniverseaway , and the decision was to remove it.
4e08a90
to
849fbbf
Compare
Description
Next step in getting to a single bucket: delete object
How Has This Been Tested?
Added unit & integration tests.
Screenshots (if appropriate):
Types of changes
Checklist: